package only.my.railgunys.bean;


public abstract class Weapon {
    public Double atk;
    public Double subStatValue;
    public int refineLevel;
    public String name;
    public int code;
    public int times; // 特殊武器有叠层

    public Character mainStatEnhance(Character character){
        character.setAtk(character.getAtk()+atk);
        character.addDescription("精"+this.refineLevel+name);
        if(times > 0){
            character.addDescription(this.times+"层");
        }
        character.setWeapon(code);
        character.setWeaponRefineLevel(refineLevel);
        return character;
    }
    public abstract Character subStatEnhance(Character character);
    public abstract Character specialAbility(Character character);
}
